package netpoll

import "syscall"

type Listener struct {
	fd int
}
type IListener interface {
	Accept() (int, syscall.Sockaddr, string, error)
}

func NewListener() (*Listener, error) {
	l, e := newListener()
	if e != nil {
		return nil, e
	}

	return &Listener{fd: l}, nil
}
